package com.gxa.learning.pc.service;

import com.github.pagehelper.PageInfo;
import com.gxa.learning.core.exception.BusinessException;
import com.gxa.learning.core.pojo.Project;
import com.gxa.learning.core.service.BaseService;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author ru
 */
public interface ProjectService extends BaseService<Project> {

    /**
     * 分页
     */
    List<Project> getByPage(String name, Date start, Integer status, String man, Date end, Integer page, Integer size) throws BusinessException;

    /**
     * 获取分页记录数
     */
    Integer getByPageCount(String name, Date start, Integer status, String man, Date end) throws BusinessException;

    /**
     * 获取学员参加的培训
     *
     * @param map
     * @return
     */
    List<Map<String, Object>> getUserProject(Map<String, Object> map);

    PageInfo<Map<String, Object>> getProjectList(Integer page, Integer size, String projectName, String projectStatus, String projectMan) throws Exception;

}
